/**
 * 
 */
package domain;

/**
 * @author it-equipment-selection team
 *
 */
public class NetworkPrinter extends Printer {
	
	private boolean snmpCapable;
	private boolean debianComp;
	
	public NetworkPrinter(String brand, String model, double price,
			Article article, Supplier supplier, int ppm, boolean duplex,
			boolean nic, boolean snmpCapable, boolean debianComp) {
		super(brand, model, price, article, supplier, ppm, duplex, nic);
		this.snmpCapable = snmpCapable;
		this.debianComp = debianComp;
	}
	
	public NetworkPrinter() {
	}
	
	public boolean isSnmpCapable() {
		return snmpCapable;
	}

	public void setSnmpCapable(boolean snmpCapable) {
		this.snmpCapable = snmpCapable;
	}

	public boolean isDebianComp() {
		return debianComp;
	}

	public void setDebianComp(boolean debianComp) {
		this.debianComp = debianComp;
	}

	/* (non-Javadoc)
	 * @see domain.Printer#doValidate()
	 */
	public void doValidate() {
		if (snmpCapable == true && debianComp == true) {
			super.setValid(true);
		} else {
			super.setValid(false);
		}
		super.setValidate(true);

	}
	
	public void doContract(){
		if (this.isValid()){
			super.setContracted(true);
		}
	}
}
